package com.easy.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * @TableName products
 */
@TableName(value = "products")
@Getter
@Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
public class Products implements Serializable {

    private Integer id;

    private String name;

    private String description;

    private BigDecimal price;

    private Integer stock;

    private Integer categoryid;

    private String image;

    private BigDecimal originalprice;

    private String brand;

    private String isactive;

    private Date created;

    private Date updated;
    @TableLogic(value = "0", delval = "1")
    private Integer isdel;
    @TableField(exist = false)
    private List<ProductImage> imgList;

}